<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'registerEdit.jsp' starting page</title>
    <link rel="stylesheet" type="text/css" href="${path}/css/easyui.css">
    <script type="text/javascript" src="${path}/js/public/jquery.easyui.min.js"></script>
    <script type="text/javascript">
    	//默认当前的tab是公费
    	var currentTab = "public";
    	$().ready(function(){
    		$('#div_tabs').tabs({
    			 onSelect: function (title) {
    				 if(title == "公费"){
    					currentTab = "public";
    				 }else{
    					currentTab = "private";
    				 }
    			 }
    		});
    	});
    	
    	function doSave()
    	{
    		if(currentTab == "public"){
    			
    			window.frames['publicFrame'].doSave();
    		}else{
    			window.frames['privateFrame'].doSave();
    		}
    		
    	}
    </script>
  </head>
  
  <body style="overflow: hidden;">
   <form id="winForm" name="winForm">
  		<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
  			<tr>
				<td valign="top" align="left">	
					<div id="div_tabs" class="easyui-tabs" style="width:618px;height:338px;">
						<div title="公费" style="padding:10px;">
							<iframe id="publicFrame" style="width: 610"  height="100%" frameborder="0" src="${path}/jsp/register/publicPay.jsp"></iframe>
						</div>
						<div title="非公费" style="padding:10px;">
							<iframe id="privateFrame" style="width: 610"  height="100%" frameborder="0" src="${path}/jsp/register/privatePay.jsp"></iframe>
						</div>
					</div>
				</td>
			</tr>
  		</table>
	</form>
  </body>
</html>
